package com.ruoyi.zhgd.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;

import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 【请填写功能名称】业务对象 n_laboratory_marshall_requires
 *
 * @author zyb
 * @date 2023-10-13
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class NLaboratoryMarshallRequiresBo extends BaseEntity {

    /**
     *
     */
    @NotBlank(message = "不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 基地编码
     */
    @NotBlank(message = "基地编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String baseCode;

    /**
     * 样品名称
     */
    @NotBlank(message = "样品名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 新增人
     */
    @NotBlank(message = "新增人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String insertBy;

    /**
     * 新增时间
     */
    @NotNull(message = "新增时间不能为空", groups = { AddGroup.class, EditGroup.class })
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date insertTime;

    /**
     *
     */
    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deleted;

    /**
     * 流值下限
     */
    @NotNull(message = "流值下限不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal flowMinValue;

    /**
     * 流值上限
     */
    @NotNull(message = "流值上限不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal flowMaxValue;

    /**
     * 稳定值
     */
    @NotNull(message = "稳定值不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal stabilityValue;

    /**
     *
     */
    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deptId;

    /**
     *
     */
    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deptPkid;



    /**
     * 修改人
     */
    @NotBlank(message = "修改人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String updateBy;
    /**
     * 修改时间
     */
    @NotBlank(message = "修改时间不能为空", groups = { AddGroup.class, EditGroup.class })
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;
}
